import request from '@/utils/request'

// 查询学分审核列表
export function listApplication(query) {
  return request({
    url: '/scsystem/application/list',
    method: 'get',
    params: query
  })
}

// 查询学分审核详细
export function getApplication(appId) {
  return request({
    url: '/scsystem/application/' + appId,
    method: 'get'
  })
}

// 新增学分审核
export function addApplication(data) {
  return request({
    url: '/scsystem/application',
    method: 'post',
    data: data
  })
}

// 修改学分审核
export function updateApplication(data) {
  return request({
    url: '/scsystem/application',
    method: 'put',
    data: data
  })
}

// 删除学分审核
export function delApplication(appId) {
  return request({
    url: '/scsystem/application/' + appId,
    method: 'delete'
  })
}
